<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/6/25 0025
 * Time: 11:54
 */

namespace app\wap\validate;


use think\Validate;

class Pays extends Validate
{
    protected $rule = [
        'PayWay'    =>  'require|in:alipay,wechat',
        'id'        =>  'require'
    ];

    protected $message = [
        'PayWay.require'    =>  '请选择支付方式',
        'PayWay.in'         =>  '请选择正确的支付方式',
        'id.require'        =>  '请选择充值档位',
    ];

    protected $scene = [
        'paysign'       =>['id','PayWay'],
    ];
}